Skip to content

Добавил CRUD новостей#29

Open
YadaDelta wants to merge 5 commits intomainfrom
feature/yashin/api-news
Open

Добавил CRUD новостей#29
YadaDelta wants to merge 5 commits intomainfrom
feature/yashin/api-news

Conversation

@YadaDelta
Copy link
Contributor

No description provided.

@YadaDelta YadaDelta requested a review from iphilka May 21, 2024 16:25
@YadaDelta YadaDelta linked an issue May 21, 2024 that may be closed by this pull request

newsRouter.get('/', async (req, res) => {
try {
const news = await News.findAll({});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Сортировка по времени добавления (сначала самые новые)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

API для новостей

2 participants